# make/web.mk
# Web specific build tasks

# --- Web Variables ---
WEB_RELEASE_DIR := $(BUILD_DIR)/web

# --- Web Targets ---
.PHONY: web-build web-run web-clean

web-build: get
	@echo "--> [WEB] Building release web application..."
	@flutter build web --release
	@echo "✅ Web app generated at: $(WEB_RELEASE_DIR)"

web-run:
	@echo "--> [WEB] Running app in Chrome..."
	@flutter run -d chrome

web-clean:
	@echo "--> [WEB] Cleaning web build artifacts..."
	@rm -rf $(BUILD_DIR)/web
	@echo "✅ Web build cleaned."